/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package kodi.view;

import java.util.Date;
import com.opensymphony.xwork2.ActionSupport;
public class DatePickerAction  extends ActionSupport {

    private Date date1;
    private Date date2;
    private Date date3;

    public String execute() throws Exception {
        if (getDate1() != null) {
            return SUCCESS;
        } else {
            return NONE;


        }
    }
    //return today date

    public Date getTodayDate() {

        return new Date();
    }

    /**
     * @return the date1
     */
    public Date getDate1() {
        return date1;
    }

    /**
     * @param date1 the date1 to set
     */
    public void setDate1(Date date1) {
        this.date1 = date1;
    }

    /**
     * @return the date2
     */
    public Date getDate2() {
        return date2;
    }

    /**
     * @param date2 the date2 to set
     */
    public void setDate2(Date date2) {
        this.date2 = date2;
    }

    /**
     * @return the date3
     */
    public Date getDate3() {
        return date3;
    }

    /**
     * @param date3 the date3 to set
     */
    public void setDate3(Date date3) {
        this.date3 = date3;
    }
    //getter and setter methods

}
